package com.qianxun.watchdog;

import java.util.Objects;

/**
 * @author: huwei
 * @date: 2020/10/19 15:16
 * @version: 1.0.0
 */
public class Master {
    private String name;

    private String path;

    public Master(String name, String path) {
        this.name = name;
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Master master = (Master) o;
        return Objects.equals(name, master.name) &&
                Objects.equals(path, master.path);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, path);
    }

    @Override
    public String toString() {
        return "Master{" +
                "name='" + name + '\'' +
                ", path='" + path + '\'' +
                '}';
    }
}
